<?php
$this->houseme_view->header();
?>
<!--好巧俬介紹頁-->
    <div id="themePage">
        <div id="tpCont">
        <h3 class="themeTitle0<?php echo $topic[0]['category_key']; ?>"><?php echo $topic[0]['topic_category']; ?></h3>
        <div id="topicBtns">
        <div class="pageBtn_collect"><span>/topic/detail/<?php echo $topic[0]['id'].'/'; ?></span></div>
        <a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(current_url());?>"><div class="pageBtn_sharefb"></div></a>
        </div>
        <h4 class="themeTextTitle"><?php echo $topic[0]['topic_title']; ?></h4>
        <div class="themeDemoText">
            <?php echo $topic[0]['topic_desc']; ?>
        </div>
        <span>
            <p class="user_question">對於文章內容有疑問嗎？<a href="javascript:;" onclick="location.href='mailto:infor.houseme@gmail.com?subject=我要檢舉不當內容&body='+ report_valid_post_email_content()" >請告知我們</a></p>
        </span>
        </div>
        
        <!--
        <div class="thmemOtherTitle_02">其它主題推薦</div>
        <ul>
            <li><a href="#">
            <img src="images/photolist/ssize.png" width="200" height="150" />
            <span class="themeTitle_02">主題推薦</span>
            <div class="photoListInfo_02">        
            天氣越來越熱了，吊扇真的是好物
            運用巧思還會讓天花板變成吸....</div></a></li>
            <li><a href="#">
            <img src="images/photolist/ssize.png" width="200" height="150" />
            <span class="themeTitle_02">主題推薦</span>
            <div class="photoListInfo_02">        
            天氣越來越熱了，吊扇真的是好物
            運用巧思還會讓天花板變成吸....</div></a></li>
            <li><a href="#">
            <img src="images/photolist/ssize.png" width="200" height="150" />
            <span class="themeTitle_02">主題推薦</span>
            <div class="photoListInfo_02">        
            天氣越來越熱了，吊扇真的是好物
            運用巧思還會讓天花板變成吸....</div></a></li>
        </ul>
        -->
        <?php if($related_post){ ?>
        <div class="ideaOtherTitle_01">其它人也看了</div>
        <ul>
            <?php foreach($related_post as $post_key => $post){ ?>
                    <?php 
                        $temp = json_decode($post['upload_image']);
                        $image_filename = $temp[0];
                    ?>
                <li class="recommendPost"><a href="/post/detail/<?php echo $post['id'].'/'; ?>">
                <img class="recommendPost_img" src="<?php echo $this->config->item('image_uploader_thumbs','layout').'/'.$post['user_id'].'/'.$image_filename; ?>" width="136" height="102" />
                <div class="topicRecommendPostInfo">        
                    <?php echo $post['post_excerpt']; ?>
                </div></a></li>
            <?php } ?>
        </ul>
        <?php } ?>
        <div class="endSpan"></div>
        <div class="google_ads">
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- 主題內頁_1 -->
            <ins class="adsbygoogle"
                 style="display:inline-block;width:320px;height:50px"
                 data-ad-client="ca-pub-2705523748622919"
                 data-ad-slot="6940903187"></ins>
            <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
            </script>
        </div>
        <div class="fb-comments" data-href="<?php echo current_url();?>" data-width="600" data-numposts="5" data-colorscheme="light"></div>
        <div class="fb-like-box" data-href="https://www.facebook.com/pages/%E6%97%A9%E7%9F%A5%E9%81%93%E5%B0%B1%E6%8A%8A%E6%88%91%E5%AE%B6%E6%90%9E%E6%88%90%E9%80%99%E6%A8%A3/191132744393087?ref_type=bookmark" data-width="600" data-height="230" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>
    </div> 
    <?php if($topic[0]['id']==6 || $topic[0]['id']==16 || $topic[0]['id']==17){ ?>
    <div class="list visible-xs visible-sm">
        <dl>
            <dt>
                <a href="http://houseme.meepshop.com/product/53a27b370dcd649a5c00001c/">
                    <img src="<?php echo $this->config->item('image_uploader_thumbs','layout').'/11/1400079288.jpg'; ?>" width="200" height="150" />
                    <!--<img src="/assets/img/ex_200x150.png"/>-->
                    <span>        
                        Qubefun樂高電源開關蓋板購買專區</span>
                    </a>
                            <!--
                            <ul class="sharebox">
                                <li>
                                    <img src="images/fb.jpg" alt="">
                                </li>
                                <li>
                                    <img src="images/star.jpg" alt="">
                                </li>
                                <li>
                                    <img src="images/love.jpg" alt="">
                                </li>
                            </ul>
                        -->
                    </dt>
                </dl>
    </div>
    <?php } ?>
    <!--哪裡買-->
    <?php if($topic[0]['id']==6 || $topic[0]['id']==16 || $topic[0]['id']==17){ ?>
    <div id="whereBuy" class="hidden-xs hidden-sm">
        <h3>哪裡買</h3>
        <ul>
            <li><a href="http://houseme.meepshop.com/product/53a27b370dcd649a5c00001c/">
            <img src="<?php echo $this->config->item('image_uploader_thumbs','layout').'/11/1400079288.jpg'; ?>" width="200" height="150" />
            <div class="photoListInfo_01">        
            Qubefun樂高電源開關蓋板購買專區</div></a></li>
        </ul>
        <div class="endSpan"></div>
    </div>
    <?php } ?>
<?php
$this->houseme_view->footer();
?>